package com.luginf.activities;

import com.luginf.activities.create.ProjectActivity;
import com.luginf.activities.view.SummaryActivity;

import com.luginf.activities.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class LauncherActivity extends Activity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button newProject = (Button) findViewById(R.id.newProject);
		newProject.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(getBaseContext(), ProjectActivity.class);                      
				startActivity(i);
			}
		});

		Button continueProject = (Button) findViewById(R.id.continueProject);
		continueProject.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(getBaseContext(), SummaryActivity.class);                      
				startActivity(i);
			}
		});
		
		Button listProject = (Button) findViewById(R.id.listProject);
		listProject.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(getBaseContext(), ProjectActivity.class);                      
				startActivity(i);
			}
		});
	}
}